<!doctype html>
<html lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>货物信息列表</title>
	<script type="text/javascript" src="__PUBLIC__/hdjs/jquery-1.11.3.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__PUBLIC__/hdjs/hdjs.min.js"></script>
	<link href="__PUBLIC__/css/mine.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<div class="div_head">
		<span>
			<span style="float: left;">当前位置是：仓库管理 >></span><span>货物信息列表</span>
			<span style="float: right; margin-right: 8px; font-weight: bold;">
				<a style="text-decoration: none;" href="{:U('Excel/get_g_l')}">【导出货物信息】</a>
			</span>
			<span style="float: right; margin-right: 8px; font-weight: bold;">
				<a style="text-decoration: none;" href="{:U('Excel/import_g')}">【批量导入货物信息】</a>
			</span>
			<span style="float: right; margin-right: 8px; font-weight: bold;">
				<a style="text-decoration: none;" href="{:U('add')}">【录入货物信息】</a>
			</span>
		</span>
	</div>
	<div style="font-size: 13px; margin: 0px 5px;padding:0 20px;">
		<p class="hd-title-header">按货物名称查找</p>
		<form method="get" action="__SELF__">
		<input type="hidden" name="p" value="1" />
		<input type="hidden" name="b_id" value="0" />
		输入货物名称：<input type="text" name="g_name" value="<?php echo I('get.g_name'); ?>" class="hd-w250 hd-h40" />
		<input type="submit" value="查找" class="hd-btn hd-btn-primary"/>
		</form>	
	</div>
	<div style="font-size: 13px; margin:0px 5px;padding:0 20px;">
		<div class="hd-page">
			{$page}
		</div>
		<table class="hd-table hd-table-list">
			<thead>
				<tr style="font-weight: bold;">
					<td>编号</td>
					<td>货物名称</td>
					<td>货物单位</td>
					<td>库存预警数</td>
					<td>货物单个重量</td>
					<td>排序</td>
					<td>备注信息</td>
					<td>录入时间</td>
					<td>更新时间</td>
					<td>负责人</td>
					<td>操作</td>
				</tr>
			</thead>
			<tbody>
				<volist name='g_list' id='v'>
				<tr id="product1">
					<td>{$v.g_id}</td>
					<td>{$v.g_name}</td>
					<td><a href="{:U('showlist',array('dw_id' =>$v['g_dw_id']))}">{$v.dw_name}</a></td>
					<td>{$v.g_yjs}</td>
					<td><if condition="$v['g_zl'] eq 0 ">未知<else />{$v.g_zl}kg</if></td>
					<td>{$v.g_num}</td>
					<td>{$v.g_bz}</td>
					<td>{$v.g_addtime|date="Y-m-d",###}</td>
					<td>{$v.g_updatetime|date="Y-m-d",###}</td>
					<td>{$v.g_fzr}</td>
                    <td><a href="{:U('update',array('g_id' => $v['g_id']))}">修改</a>|
					<a onclick="if (confirm('确定要删除吗？')) return true; else return false;" href="{:U('delete',array('g_id' => $v['g_id']))}">删除</a></td>
				</tr>
				</volist>
			</tbody>
		</table>
		<div class="hd-page">
			{$page}
		</div>
	</div>
</body>
</html>